import request from '@/utils/request'
export default{
  // 1.查询课时
  getById(id) {
    return request({
      url: `/admin/edu/video/getById/${id}`,
      method: 'get'
    })
  },
  // 2.更新章
  update(video) {
    return request({
      url: '/admin/edu/video/update',
      method: 'put',
      data: video
    })
  },
  // 3.新增章
  save(video) {
    return request({
      url: '/admin/edu/video/save',
      method: 'post',
      data: video
    })
  },
  // 4.删除指定章
  removeById(id) {
    return request({
      url: `/admin/edu/video/remove/${id}`,
      method: 'delete'
    })
  }
}
